map
Represents a mutable map that preserves entry iteration order.
Since
0.6.0
Constructors
Functions
Link copied to clipboard
Gets the value associated with a key in the map, or a default value if the key is not found.
Link copied to clipboard
Gets the value associated with a key in the map, returning null
if the key is not found.
Link copied to clipboard
pure function join_to_text([separator: text], [prefix: text], [postfix: text], [limit: integer?], [truncated: text], [transform: ((K, V)) -> text]): text
Creates a text from all the elements separated using separator
and using the given prefix
and postfix
if supplied.
If the iterable is large, you can specify a non-negative value of limit
, in which case only the first limit
of elements will be appended, followed by the truncated
text (which defaults to "...").
Link copied to clipboard
Removes a key-value pair from the map, returning null
if the key is not found.